package general;
import java.rmi.server.RemoteObject;

public class Bid {
	private ProductPrice fPrice;
	private RemoteObject fBidder;

	public Bid(ProductPrice price, RemoteObject bidder) {
		fPrice = price;
		fBidder = bidder;
	}

	public RemoteObject getBidder() {
		return fBidder;
	}

	public boolean isLarger(Bid b) {
		if (this.fPrice.getPrice() > b.getProductPrice().getPrice())
			return true;
		else {
			return false;
		}
	}

	public ProductPrice getProductPrice() {
		return fPrice;
	}

	public boolean isEqual(Bid b) {
		return (fPrice.getPrice() == b.getProductPrice().getPrice());
	}
}
